package com.lam.framework.bean.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lam.common.components.data.service.DataInjectService;
import com.lam.framework.bean.mapper.DataInjectMapper;

@Service
public class DataInjectServiceImpl implements DataInjectService {
	
	@Autowired
	private DataInjectMapper dataInjectMapper;
	
	@Override
	@Transactional(readOnly = true)
	public Map<String, Object> queryOne(String sql) {
		return dataInjectMapper.queryOne(sql);
	}

	@Override
	@Transactional(readOnly = true)
	public String queryOneValue(String sql) {
		return dataInjectMapper.queryOneValue(sql);
	}

	@Override
	@Transactional(readOnly = true)
	public List<Map<String, Object>> queryList(String sql) {
		return dataInjectMapper.queryList(sql);
	}

	@Override
	@Transactional(readOnly = true)
	public List<String> queryValueList(String sql) {
		return dataInjectMapper.queryValueList(sql);
	}

}
